# Contributor: David Demelier <markand@malikania.fr>
# Maintainer: David Demelier <markand@malikania.fr>
pkgname=libretro-beetle-ngp
pkgver=0_git20220719
pkgrel=0
_commit="00c7cb8ea97ad9a372307405d8abf34e401fec8a"
pkgdesc="standalone port of Mednafen NGP to the libretro API"
url="https://github.com/libretro/beetle-ngp-libretro"
arch="all"
license="GPL-2.0-only"
source="$pkgname-$_commit.tar.gz::https://github.com/libretro/beetle-ngp-libretro/archive/$_commit.tar.gz"
builddir="$srcdir/beetle-ngp-libretro-$_commit"
options="!check" # No tests

build() {
	make
}

package() {
	install -Dm644 mednafen_ngp_libretro.so "$pkgdir"/usr/lib/libretro/mednafen_ngp_libretro.so
}

sha512sums="
a3403537a63ed5a9c74b207a93907904194d161f040fda4f13b50c2c4bfe2447c787f999a8e0a9401565abc35746ef0b72c96cae90b093196b123c31f4ea28ff  libretro-beetle-ngp-00c7cb8ea97ad9a372307405d8abf34e401fec8a.tar.gz
"
